import axios from "../axios"
// 轮播图列表
/**
 * 
 * @param params
 * @returns {Promise<AxiosResponse<any>>}
 */
export function get_banner_list_api(){
    return axios.post("/portal/picRotation/findList",{
      
    })
}
/**
 * 修改轮播图
 * @param params
 * {
    "jumpUrl": "string",
    "picCode": 0,
    "picUrl": "string",
    "rotationId": "string",
    "rotationStatus": "string"
    }
 */
export function edit_banner_api(params){
    console.log("edit_banner_api")
    return axios.post("/back/picRotation/mod",{
        ...params
    })
}
/**
 * 
 * @param {*} params 
 * {
  "jumpUrl": "string",
  "picCode": 0,
  "picUrl": "string",
  "rotationId": "string",
  "rotationStatus": "string"
}
 */
export function add_banner_api(params){
    console.log("add_banner_api")
    return axios.post("/back/picRotation/add",{
        ...params
    })
}
